<ion-view title="客户签收">
  <ion-nav-buttons side="left">
    <button class="button back-button buttons icon ion-ios-arrow-left button-clear header-item" nav-direction="back" ui-sref="menu">返回</button>
  </ion-nav-buttons>
  <ion-nav-buttons side="right">
    <button class="button button-icon icon ion-ios-search" ui-sref="shrlistsearch"></button>
  </ion-nav-buttons>
  <ion-tabs class="tabs-top tabs-stable tabs-color-positive">
    <ion-tab title="未签收" class="tabs-item" on-select="selectTab()">
      <ion-view>
        <ion-content >
          <ion-refresher
            pulling-text="下拉刷新..."
            on-refresh="doRefresh()">
          </ion-refresher>
          <div ng-if="showloading" style="margin-top:60px; text-align: center">
            <ion-spinner icon="ios" style="height: 60px; width: 60px;;"></ion-spinner>
          </div>
          <ion-list ng-if="showloading == false">
            <h5 ng-if="cydData==''" style="color: #69717d;text-align: center;margin-top: 50px;">未找到数据</h5>
            <ion-item collection-repeat="cyd in cydData" class="cydListItem" id="item{{cyd.cyd_id}}" style="padding-top: 5px; padding-bottom: 5px;border-top-style: none;border-bottom-style: none;">
              <div class="ydList card list-inset" style="margin-bottom: 5px;">
                <div class="xuhao">
                  <div class="qs-list-operation">
                    <div class="light button-border" ui-sref="shrjsdetail({cyd_id:cyd.cyd_id,cylx:cyd.cylx,mdd:cyd.mdd})">
                      <i class="light">拒收</i>
                    </div>
                    <i class="light" style="float: right;">丨</i>
                    <div class="light button-border" ui-sref="shrqsdetail({cyd_id:cyd.cyd_id,shrmc:cyd.shrmc,shrdh:cyd.shrdh,qssl:cyd.hwsl,cylx:cyd.cylx,mdd:cyd.mdd})">
                      <i class="light">签收</i>
                    </div>
                  </div>
                </div>
                <div ui-sref="cydtab({ cyd_id : cyd.cyd_id })">
                  <label class="item item-input">
                    <i class="list-input">承运单号：</i>
                    <p>{{cyd.cydh}}</p>
                    <img src="img/cyzt{{cyd.cyzt}}.png"class="zt">
                  </label>
                  <label class="item item-input">
                    <i class="list-input">送货方式：</i>
                    <p ng-bind="getStatus(cyd.shfs)"></p>
                  </label>
                  <label class="item item-input">
                    <i class="list-input">收货人：</i>
                    <p>{{cyd.shrmc}}</p>
                    <p style="margin-left: auto;margin-right: 8px;">{{cyd.shrdh}}</p>
                  </label>
                  <label class="item item-input">
                    <i class="list-input">货名：</i>
                    <p>{{cyd.hwmc}}</p>
                    <p style="margin-left: auto;margin-right: 8px;" ng-if="cyd.hwsl!=''">{{cyd.hwsl}}件</p>
                  </label>
                  <label class="item item-input">
                    <i class="list-input">货到收款：</i>
                    <p>{{cyd.hdfk}}</p>
                  </label>
                </div>
              </div>
            </ion-item>
          </ion-list>
          <ion-infinite-scroll   on-infinite="loadMore()"  distance="1%" ng-if="hasNextPage()"></ion-infinite-scroll>
        </ion-content>
      </ion-view>
    </ion-tab>
    <ion-tab title="已签收" class="tabs-item" on-select="selectTab1()">
      <ion-view>
        <ion-content >
          <ion-refresher
                  pulling-text="下拉刷新..."
                  on-refresh="doRefresh1()">
          </ion-refresher>

          <div ng-if="showloading" style="margin-top:60px; text-align: center">
            <ion-spinner icon="ios" style="height: 60px; width: 60px;;"></ion-spinner>
          </div>
          <ion-list ng-if="showloading == false">
            <h5 ng-if="yqCyd==null||yqCyd==''" style="color: #69717d;text-align: center;margin-top: 50px;">未找到数据</h5>
            <ion-item collection-repeat="cyd in yqCyd" class="cydListItem" style="padding-top: 5px; padding-bottom: 5px;border-top-style: none;border-bottom-style: none;">
              <div class="ydList card list-inset" style="margin-bottom: 5px;">
                <div class="xuhao">
                </div>
                <div ui-sref="cydtab({ cyd_id : cyd.cyd_id })">
                  <label class="item item-input">
                    <i class="list-input">承运单号：</i>
                    <p>{{cyd.cydh}}</p>
                    <img src="img/cyzt{{cyd.qsfs=='2'?'160':cyd.cyzt}}.png"class="zt">
                  </label>
                  <label class="item item-input">
                    <i class="list-input">签收时间：</i>
                    <p>{{cyd.qssj}}</p>
                  </label>
                  <label class="item item-input">
                    <i class="list-input">送货方式：</i>
                    <p ng-bind="getStatus(cyd.shfs)"></p>
                  </label>
                  <label class="item item-input">
                    <i class="list-input">收货人：</i>
                    <p>{{cyd.shrmc}}</p>
                    <p style="margin-left: auto;margin-right: 8px;">{{cyd.shrdh}}</p>
                  </label>
                  <label class="item item-input">
                    <i class="list-input">货名：</i>
                    <p>{{cyd.hwmc}}</p>
                    <p style="margin-left: auto;margin-right: 8px;" ng-if="cyd.hwsl!=''">{{cyd.hwsl}}件</p>
                  </label>
                  <label class="item item-input">
                    <i class="list-input">货到收款：</i>
                    <p>{{cyd.hdfk}}</p>
                  </label>
                </div>
              </div>
            </ion-item>
          </ion-list>
          <ion-infinite-scroll   on-infinite="loadMore1()"  distance="1%" ng-if="hasNextPage1()"></ion-infinite-scroll>
        </ion-content>
      </ion-view>
    </ion-tab>
  </ion-tabs>
</ion-view>
